﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Web;

using SBPweb.Modules.Modularity;

namespace SBPweb.Services.Base
{

    public abstract class ServiceEntry : ModuleBase
    {

        #region Private fields

        #endregion

        #region Constructor logic

        public ServiceEntry(IModuleHost host)
            :base(host)
        {
        }

        #endregion

        #region Property accessors

        #endregion

        #region Methods

        #region ModuleBase

        public override void Initialize()
        {
            IsInitialized = true;
        }

        public override void Terminate()
        {
            IsInitialized = false;
        }

        public override void LoadPersistency()
        {
        }

        public override void SavePersistency()
        {
        }

        #endregion

        public abstract ServiceBase CreateServiceInstance();

        #endregion

    }

}